home *** CD-ROM | disk | FTP | other *** search
/ Maclife 157 / MACLIFE157-2001-09.ISO.7z / MACLIFE157-2001-09.ISO / Linux / MacOS Tools / Other / BootX 1.1.3 (for Old Mac OS) / Sources / lib / MoreInterfaceLib / MoreInterfaceLib.h < prev   
Text File  |  2001-07-23  |  3KB  |  100 lines

  1. /*
  2.     File:        MoreInterfaceLib.h
  3.  
  4.     Contains:    Interface to compatibility shim for routines not in InterfaceLib
  5.                 prior to Mac OS 8.5.
  6.  
  7.     Written by:    Quinn
  8.  
  9.     Copyright:    Copyright ゥ 1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.  
  21.          <4>     20/4/99    Quinn   Added Gestalt Value routines.
  22.          <3>     16/3/99    Quinn   Added MoreUTFindDrive and MoreAddDrive.
  23.          <2>      1/3/99    Quinn   Added MoreFlushCodeCacheRange.  Also corrected a serious bug in
  24.                                     MoreDriverInstallReserveMem, which was missing the #pragma
  25.                                     parameter stuff.  Also some general tidy up.
  26.          <1>     25/2/99    Quinn   First checked in.
  27. */
  28.  
  29. #pragma once
  30.  
  31. /////////////////////////////////////////////////////////////////
  32. // MoreIsBetter Setup
  33.  
  34. #include "MoreSetup.h"
  35.  
  36. /////////////////////////////////////////////////////////////////
  37. // Mac OS Interfaces
  38.  
  39. #include <MacTypes.h>
  40. #include <Devices.h>
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45.  
  46. /////////////////////////////////////////////////////////////////
  47.  
  48. extern pascal SInt16 MoreLMGetUnitTableEntryCount(void)
  49.     TWOWORDINLINE(0x3EB8, 0x01D2);
  50.  
  51. extern pascal void   MoreLMSetUnitTableEntryCount(SInt16 value)
  52.     TWOWORDINLINE(0x31DF, 0x01D2);
  53.  
  54. /////////////////////////////////////////////////////////////////
  55.  
  56.     #if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  57.     #pragma parameter __D0 MoreDriverInstallReserveMem(__A0, __D0)
  58.     #endif
  59.  
  60. extern pascal OSErr  MoreDriverInstallReserveMem(DRVRHeaderPtr drvrPtr, DriverRefNum refNum)
  61.     ONEWORDINLINE(0xA43D);
  62.  
  63. /////////////////////////////////////////////////////////////////
  64.  
  65.     #if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  66.     #pragma parameter __D0 MoreFlushCodeCacheRange(__A0, __A1)
  67.     #endif
  68.  
  69. extern pascal OSErr  MoreFlushCodeCacheRange(void *address, unsigned long count)
  70.     TWOWORDINLINE(0x7009, 0xA098);
  71.  
  72. /////////////////////////////////////////////////////////////////
  73.  
  74. extern pascal OSErr MoreUTFindDrive(SInt16 driveNum, DrvQElPtr *driveQElementPtr)
  75.     TWOWORDINLINE(0x700F, 0xA824);
  76.  
  77. /////////////////////////////////////////////////////////////////
  78.  
  79. extern pascal void MoreAddDrive(DriverRefNum drvrRefNum, SInt16 drvNum, DrvQElPtr qEl);
  80.  
  81. /////////////////////////////////////////////////////////////////
  82.  
  83. extern pascal OSErr MoreNewGestaltValue(OSType selector, long newValue)
  84.     THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
  85.  
  86. extern pascal OSErr MoreReplaceGestaltValue(OSType selector, long replacementValue)
  87.     THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
  88.  
  89. extern pascal OSErr MoreSetGestaltValue(OSType selector, long newValue)        
  90.     THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
  91.  
  92. extern pascal OSErr MoreDeleteGestaltValue(OSType selector)
  93.     THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
  94.  
  95. /////////////////////////////////////////////////////////////////
  96.  
  97. #ifdef __cplusplus
  98. }
  99. #endif
  100.